import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import { homeRouter } from './home'

const routes: Array<RouteRecordRaw> = [
  {
    //路由初始指向
    path: '/',
    redirect: '/home',
  },
  ...homeRouter
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;